<template>
    <div class="navbar">
        <router-link to="/contact" active-class="active">联系人</router-link>
        <router-link to="/my" active-class="active">个人中心</router-link>
    </div>
</template>

<style scoped>
.navbar{
    width:100%;
    line-height:50px;
    position: fixed;
    left:0px;
    bottom:0px;
    text-align: center;
    display: flex;
}
.navbar a{
    flex:1;
    font-size:16px;
    background-color: antiquewhite;
}
.navbar a.active{
    background-color: aqua;
    color:yellow;
    font-weight: bold;
}
</style>